package com.itstyle.seckill.topic.desinger.design_cj.proxy;

/**
 * @Auther: liuwenxiang
 * @Date: 2019/9/18 17:39
 * @Description:
 */
public class Proxy implements Subject {


    RealSubject realSubject;


    @Override
    public void request() {
        if (realSubject==null)
        {
            realSubject=new RealSubject();
        }
        pre();
        realSubject.request();
        post();
    }


    public  void pre(){

    }

    public  void post(){

    }
}
